function createNode(vals) {
    let heade = {
        val: null,
        next: null
    }
    let current = heade;
    vals.forEach(val => {
        current.next = {
            val: val,
            next: null
        };
        current = current.next;
    });
    return heade.next;
}
module.exports = {
    createNode: createNode
}